﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Engine.Transactions {
    import Engine.Classes.*;

    public class TStreamPublish extends Transaction {

        protected var m_type:String;
        protected var m_subtype:String;
        protected var m_data:Object;
        protected var m_targetId:String;
        protected var m_clickthorugh_params:Object;

        public function TStreamPublish(_arg1:String, _arg2:Object, _arg3:String=null, _arg4:Object=null, _arg5:String=null){
            this.m_type = _arg1;
            this.m_data = _arg2;
            this.m_targetId = _arg3;
            this.m_clickthorugh_params = _arg4;
            this.m_subtype = _arg5;
        }
        override public function perform():void{
            signedCall("UserService.streamPublish", this.m_type, this.m_data, this.m_targetId, this.m_clickthorugh_params, this.m_subtype);
        }
        override protected function onComplete(_arg1:Object):void{
            if ((GlobalEngine.socialNetwork is SNAPISocialNetwork)){
                (GlobalEngine.socialNetwork as SNAPISocialNetwork).snapiStreamPublish(_arg1);
            } else {
                GlobalEngine.socialNetwork.streamPublish(_arg1.attachment, _arg1.action_link, _arg1.target_id, _arg1.user_message_prompt);
            };
        }

    }
}//package Engine.Transactions 
